<h1>Listing accomodations</h1>

<table>
  <tr>
    <th>Room</th>
    <th>Guest</th>
    <th>Emp</th>
    <th>Arrive date</th>
    <th>Exit date</th>
    <th>Checkedout</th>
  </tr>

<% @accomodations.each do |accomodation| %>
  <tr>
    <td><%=h accomodation.room_id %></td>
    <td><%=h accomodation.guest_id %></td>
    <td><%=h accomodation.emp_id %></td>
    <td><%=h accomodation.arrive_date %></td>
    <td><%=h accomodation.exit_date %></td>
    <td><%=h accomodation.checkedOut %></td>
    <td><%= link_to 'Show', accomodation %></td>
    <td><%= link_to 'Edit', edit_accomodation_path(accomodation) %></td>
    <td><%= link_to 'Destroy', accomodation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New accomodation', new_accomodation_path %>
<%= link_to 'Bill check', :action => :select_room %>